package Messages;

import java.io.Serializable;

/**
 * Message object that is used for Remote Procedure Calls. For more details on
 * MessageType, Check Enum MessageType.java
 */
public class Message implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	
	MessageType messageType;
	int proposalNumber; // N in Paxos Algorithm impl
	int lockValue; // V in Paxos Algorithm Impl
	String clientId;
	
	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public int getProposalNumber() {
		return proposalNumber;
	}

	public void setProposalNumber(int proposalNumber) {
		this.proposalNumber = proposalNumber;
	}

	public int getLockValue() {
		return lockValue;
	}

	public void setLockValue(int lockValue) {
		this.lockValue = lockValue;
	}

	public MessageType getMessageType() {
		return messageType;
	}

	public void setMessageType(MessageType messageType) {
		this.messageType = messageType;
	}
}
